package ntu.metaweb.result;

import java.util.Vector;

import ntu.metaweb.storage.User;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xmlresponse")
public class ContactList {
	public int returncode;
	
	public Vector<String> followed;
	public Vector<String> follower;
	
	public ContactList(User user) {
		followed = new Vector<String>();
		follower = new Vector<String>();
		returncode = 1;
		for (String s : user.getTrustedUsers()) {
			followed.add(s);
		}
		for (String s : user.getTrusterUsers()) {
			follower.add(s);
		}
	}

	public ContactList() {
		followed = new Vector<String>();
		follower = new Vector<String>();
		returncode = 1;
	}
}
